package com.better.frontend.model.index;

import com.better.util.page.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotEmpty;

import java.util.Date;

/**
 * Created by Administrator on 2017/11/20.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("考试信息页面参数")
@EqualsAndHashCode
public class IndexParam extends Page {

    @ApiModelProperty(value = "考试id")
    private String sourceExamId;
    @ApiModelProperty(value = "年级ID/班级ID",required = true)
    private String unitId;
    @ApiModelProperty(value = "考试名称")
    private String examName;
    @NotEmpty(message = "考试类型不能为空")
    @ApiModelProperty(required = true ,value = "考试类型（校考(1)、班考 (2）")
    private String examType;
    @ApiModelProperty(value = "考试开始时间")
    private Date startDate;
    @ApiModelProperty(value = "考试结束时间")
    private Date endDate;
    @ApiModelProperty(value = "学生ID")
    private String studentId;
    @Override
    public String toString() {
        return "{" +
                "examName='" + examName + '\'' +
                ", examType='" + examType + '\'' +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                '}';
    }
}
